<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Filp Checkbox with CSS</title>
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <div class="center">
    <input type="checkbox" name="cb">
    <span>On</span>
    <span>Off</span>
  </div>
</body>
</html>
